<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>{$title}</title>
		{if isset($meta) && is_array($meta)}
			{foreach $meta as $valueArray}
			<meta {foreach $valueArray as $key=>$value} {$key}="{$value}"{/foreach}/>
			{/foreach}
		{/if}
		{if isset($css) && is_array($css)}
			{foreach $css as $valueArray}
			<link {foreach $valueArray as $key=>$value} {$key}="{$value}"{/foreach}/>
			{/foreach}
		{/if}
		<script type="text/javascript">
			var DOC_ROOT = '{$DOC_ROOT}';
			var URL_ROOT = '{$URL_ROOT}';
            var STATIC_ROOT = '{$STATIC_ROOT}';
		</script>
		{if isset($google_key)}
		<script type="text/javascript" src="https://www.google.com/jsapi?key={$google_key}"></script>
		{/if}
		{if isset($js) && is_array($js)}
			{foreach $js as $valueArray}
			<script {foreach $valueArray as $key=>$value} {$key}="{$value}"{/foreach}></script>
			{/foreach}
		{/if}
	</head>
	<body>{$body}</body>
</html>